using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FadeInEffect : MonoBehaviour
{
    void Awake()
    {
        gameObject.SetActive(true);

        transform.localPosition = new Vector2(0, 0f);
    }
    void Start()
    {
        transform.localPosition = new Vector2(0, 0f);

    }
    void OnEnable()
    {
        transform.localPosition = new Vector2(0, 0f);

    }
    void Update()
    {
        transform.localPosition = new Vector2(0, 0f);
        
    }
    void OverAnim()
    {
        //播放完成销毁节点
        Destroy(gameObject);
    }

}
